<div ng-controller="GetUnitInfoCtrl">
  <div class="panel panel-default">
   	<div class="panel-body" style="padding-top: 0;padding-bottom: 0;">
    		<div class="nav navbar-nav m-t">
   			      <a ui-sref="app.sys.unit({page:$state.params.page})" ><span style="background-color: #e0e0e0; text-align: center;"><i class="glyphicon glyphicon-arrow-left" style="height:30px;width:30px; "></i></span></a>       
              <span><b>系统设置</b></span>
              <i class="fa fa-angle-right" style="font-size:20px"></i>
              <span><b>单元管理</b> </span>
              <i class="fa fa-angle-right" style="font-size:20px"></i>
              <span><b>单元信息</b></span> 
           </div>
          <!-- nabar right -->
          <ul class="nav navbar-nav navbar-right">          
            <li class="dropdown" dropdown>
              <a href class="dropdown-toggle clear" dropdown-toggle>
                <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
                  <img src="img/a0.jpg" alt="...">
                  <i class="on md b-white bottom"></i>
                </span>
                <span class="hidden-sm hidden-md"><b>{{namedata}}</b></span> <b class="caret"></b>
              </a>
              <!-- dropdown -->
              <ul class="dropdown-menu animated fadeInRight w">  
                <li>
                  <a ui-sref="app.user.info">用户信息</a>
                </li>       
                <li class="divider"></li>
                <li>
                  <a ui-sref="access.signin" ng-click="logout()">登出</a>
                </li>
              </ul>
              <!-- / dropdown -->
            </li>
          </ul>
   	</div>
</div>
<div class="panel m-t-n-md">
    <div class="panel-body">
      <h3 style="font-weight: bold;">{{aaData.school_name}}--{{aaData.building_type}}--{{aaData.building_name}}--{{aaData.room_name}}</h3>
      <h4 style="font-weight: bold;" class="m-t">单元信息</h4>
      <div class="row m-t-lg">
        <div class="col-md-6">
          <h4 style="font-weight: bold;" >管理员信息</h4>    
          <table class="table" style="font-size: 16px;">
            <tr>
              <td>管理员:</td>
              <td>{{aaData.admin_name}}</td>
            </tr>
            <tr>
              <td>联系方式:</td>
              <td>{{aaData.admin_contact}}</td>
            </tr>
          </table>
        </div>
        <div class="col-md-6">
          <h4 style="font-weight: bold;">学生信息</h4>
            <table class="table" style="font-size: 16px">
              <tr ng-repeat="dda in aaData.room_member.room_leader">
                <td>宿舍长</td>
                <td>{{dda.name}}</td>
                <td>{{dda.contact}}</td>
              </tr>
              <tr ng-repeat="mda in aaData.room_member.room_members">
                <td>宿舍成员</td>
                <td>{{mda.name}}</td>
                <td>{{mda.contact}}</td>
              </tr>
              
            </table>
        </div>
      </div>

      <div class="row">
        <div class="col-md-6">
          <h4 style="font-weight: bold;">维保人信息</h4>
            <table class="table" style="font-size: 16px">
              <tr>
                <td>维保人</td>
                <td>{{aaData.maintenance_personnel}}</td>
              </tr>
              <tr>
                <td>联系方式</td>
                <td>{{aaData.maintenance_contact}}</td>
              </tr>              
            </table>
        </div>
      </div>
      
     
    
  </div>
</div>